package com.gdyx.app.web.model;

import java.io.Serializable;

public class MpsFun implements Serializable {
    private String id = "";
    private String name = "";
    private String parent = "";
    private String iconCls = "";
    private String href = "";
    private String target = "";
    private String descr = "";
    private long sort = 99999;
    private Integer status = 0;
    private String createTime = "";
    private String createOwner = "";
    private String modifyTime = "";
    private String modifyOwner = "";

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public long getSort() {
        return sort;
    }

    public void setSort(long sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateOwner() {
        return createOwner;
    }

    public void setCreateOwner(String createOwner) {
        this.createOwner = createOwner;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyOwner() {
        return modifyOwner;
    }

    public void setModifyOwner(String modifyOwner) {
        this.modifyOwner = modifyOwner;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MpsFun mpsFun = (MpsFun) o;

        if (sort != mpsFun.sort) return false;
        if (id != null ? !id.equals(mpsFun.id) : mpsFun.id != null) return false;
        if (name != null ? !name.equals(mpsFun.name) : mpsFun.name != null) return false;
        if (parent != null ? !parent.equals(mpsFun.parent) : mpsFun.parent != null) return false;
        if (iconCls != null ? !iconCls.equals(mpsFun.iconCls) : mpsFun.iconCls != null) return false;
        if (href != null ? !href.equals(mpsFun.href) : mpsFun.href != null) return false;
        if (target != null ? !target.equals(mpsFun.target) : mpsFun.target != null) return false;
        if (descr != null ? !descr.equals(mpsFun.descr) : mpsFun.descr != null) return false;
        if (status != null ? !status.equals(mpsFun.status) : mpsFun.status != null) return false;
        if (createTime != null ? !createTime.equals(mpsFun.createTime) : mpsFun.createTime != null) return false;
        if (createOwner != null ? !createOwner.equals(mpsFun.createOwner) : mpsFun.createOwner != null) return false;
        if (modifyTime != null ? !modifyTime.equals(mpsFun.modifyTime) : mpsFun.modifyTime != null) return false;
        return modifyOwner != null ? modifyOwner.equals(mpsFun.modifyOwner) : mpsFun.modifyOwner == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (parent != null ? parent.hashCode() : 0);
        result = 31 * result + (iconCls != null ? iconCls.hashCode() : 0);
        result = 31 * result + (href != null ? href.hashCode() : 0);
        result = 31 * result + (target != null ? target.hashCode() : 0);
        result = 31 * result + (descr != null ? descr.hashCode() : 0);
        result = 31 * result + (int) (sort ^ (sort >>> 32));
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (createOwner != null ? createOwner.hashCode() : 0);
        result = 31 * result + (modifyTime != null ? modifyTime.hashCode() : 0);
        result = 31 * result + (modifyOwner != null ? modifyOwner.hashCode() : 0);
        return result;
    }
}